﻿using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

namespace DomusDotNet.Sbm.ObjectModel
{
    public class Member : BaseObject
    {
        public Member()
        {
        }

        [Required]
        public virtual string Username
        {
            get;
            set;
        }

        [Required]
        [MinLength(6)]
        [MaxLength(15)]
        public virtual string Password
        {
            get;
            set;
        }

        [Required]
        public virtual string Name
        {
            get;
            set;
        }

        public virtual string Phone
        {
            get;
            set;
        }

        [Required]
        public virtual string Surname
        {
            get;
            set;
        }

        [Required]
        public virtual string Email
        {
            get;
            set;
        }

        //public virtual byte Reliability

        public virtual int Reliability
        {
            get;
            set;
        }

        [Required]
        public virtual Address Address
        {
            get;
            set;
        }
    }
}
